static void
gtk_scrollbar_init (GtkScrollbar *scrollbar)
{
+ GtkStyleContext *context;
+
+ context = gtk_widget_get_style_context (GTK_WIDGET (scrollbar));
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_SCROLLBAR);
}
static void
strcmp (detail, "viewportbin") == 0)
gtk_style_context_add_class (context, "viewport");
else if (strncmp (detail, "trough", 6) == 0)
- {
- gtk_style_context_add_class (context, "scrollbar");
- gtk_style_context_add_class (context, "trough");
- }
+ gtk_style_context_add_class (context, "trough");
else if (strcmp (detail, "spinbutton") == 0)
gtk_style_context_add_class (context, "spinbutton");
else if (strcmp (detail, "spinbutton_up") == 0)